﻿using VirtualTournaments.Business.Financial;
using VirtualTournaments.Business.Players;

namespace VirtualTournaments.Business.Users
{
	public class User
	{
		private string userName;
		private Password password;
		private Account account;
		private Name name;

        public User(string userName, Password password) : this(userName,password,null)
        {}

		public User(string userName, Password password, Name name)
		{
			this.UserName = userName;
			this.Password = password;
			this.name = name;
			this.account = new UnlimitedAccount();
		}

		public Name Name
		{
			get { return name; }
			set { name = value; }
		}

		public string UserName
		{
			get { return userName; }
			set { userName = value; }
		}

		public Password Password
		{
			get { return password; }
			set { password = value; }
		}

		public Account Account
		{
			get { return account; }
		}
	}
}
